#include "Event.h"

Event::Event(Shell * target)
{
//    clear(target);
    shell = target;
}
Event::~Event()
{
}

//void Event::clear()//(Shell * target)
//{
//    shell = target;
//    direction.clear();
//    spawn = false;
//        vitalityDelta = 0;
//        command = '\0'; 
//}

bool Event::equalsShell(const Shell * other)
{
    return (other == shell);
}

//Event & Event::operator+=(const Event & object)
//{
//    direction.add(object.getDirection());
//    
//    if(object.isSpawn())
//        spawn = true;
//    
//    return *this;
//}

//void Event::setDirection(Direction & direction)
//{
//    this->direction = direction;
//}

//const Direction& Event::getDirection() const
//{
//    return direction;
//}

Shell * Event::getShell()
{
    return shell;
}

void Event::setPosition(Position & pos)
{
    position = pos;
}

void Event::addDirection(Direction &dir)
{
    position.X += dir.getDirectionX();
    position.Y += dir.getDirectionY();
}

